package com.dailyblue.java.project.smbms.user.handler;

import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.commons.util.ResultTool;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class GlobalExceptionHandler {

    public static JsonResult find(int page,Throwable e) {
        log.info("分页方法执行时出现异常情况,{}", page);
        return ResultTool.fail("第" + page + "页数据获取异常");
    }
}
